<%= render :partial => "/tr8n/admin/common/header" %>
<%= render :partial => "tabs" %>
<%= tr8n_will_filter(@users) %>

<%= form_tag("", :id => "language_users_form") do %>
  <%= will_filter_table_tag(@users, :columns => [
    [:icn, image_tag("tr8n/icons/user.png"), :title => "", :style => "width:12px;"],
    [:language_id, lambda{|language_user|
      if language_user.language
        link_to(language_user.language.english_name, :controller => "/tr8n/admin/language", :action => :view, :lang_id => language_user.language.id)
      else
         "Deleted Language"    
      end  
    }],
    [:user_id, lambda{|language_user|
      if language_user.user
        link_to("#{Tr8n::Config.user_name(language_user.user)} (#{Tr8n::Config.user_id(language_user.user)})", Tr8n::Config.user_link(language_user.user))
      else
        "Deleted User"
      end
    }],
    [:translator_id, lambda{|language_user|
      if language_user.translator
        link_to("#{language_user.translator.name} (#{language_user.translator.id})", :controller => "/tr8n/admin/translator", :action => :view, :translator_id => language_user.translator.id)
      else
        "Not Translator" 
      end  
    }], :created_at
  ]) %>
<% end %>   

<%= render :partial => "/tr8n/admin/common/footer" %>
